//
//  mttImage.h
//  mtt
//
//  Created by Gerfried Mikusch on 13.07.10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "mttImageDelegate.h"
#import "mttPoint.h"
#import "mttRotationRecognizer.h"

@interface mttImage : UIImageView <UIGestureRecognizerDelegate, UIActionSheetDelegate>{
	
	UITapGestureRecognizer *tapRecognizer;
	UITapGestureRecognizer *tapRecTwoFingers;
	UILongPressGestureRecognizer *longPressRecognizer;
	UIPanGestureRecognizer *panRecognizer;
	UIRotationGestureRecognizer *rotationRecognizer;
	UIPinchGestureRecognizer *pinchRecognizer;
	
	NSMutableDictionary *pinPoints;
	
	NSNumber *imagekey;
	
	id<mttImageDelegate> delegate;

}

-(void)setGestureRecognizersEnabled:(BOOL)enabled;
-(void)setPin:(mttPoint *)pin atPoint:(CGPoint)point;
-(void)deletePin:(int)deletePinID;
-(BOOL)isPinInImage:(int)thisPinID;
-(void)setAnchorPointBetweenFirstLocation:(CGPoint)firstLocation andSecondLocation:(CGPoint)secondLocation;
-(void)setAnchorpointTo:(CGPoint) point;
-(void)hideSubviews: (BOOL)hide;
-(mttPoint *)getNearestPinToPoint:(CGPoint)point;
-(BOOL)isPoint:(CGPoint)point inRect:(CGRect)rect;
-(void)logPinPoints:(NSNumber *) key;

@property (nonatomic, retain) UITapGestureRecognizer *tapRecognizer;
@property (nonatomic, retain) UITapGestureRecognizer *tapRecTwoFingers;
@property (nonatomic, retain) UILongPressGestureRecognizer *longPressRecognizer;
@property (nonatomic, retain) UIPanGestureRecognizer *panRecognizer;
@property (nonatomic, retain) UIRotationGestureRecognizer *rotationRecognizer;
@property (nonatomic, retain) UIPinchGestureRecognizer *pinchRecognizer;

@property (nonatomic, retain) NSMutableDictionary *pinPoints;

@property (nonatomic, retain) NSNumber *imagekey;

@property (nonatomic, assign) id<mttImageDelegate> delegate;

@end
